package string;

public class LengthDemo {
    public static void main(String[] args) {
        String str="我爱JAVA";
        str.length();//获取字符串的长度
        System.out.println(str.length());
    }
}
